package gof_003_行为型_Behavioral.gof_005_责任链_ChainOfResponsibility.gof_002_Chain;

public class LeaderGroup extends Leader{

    public LeaderGroup(String leaderName) {
        super(leaderName);
    }

    @Override
    public String handle(AskForLeave askForLeave) {
        double days = askForLeave.getDays();
        System.out.println("向组长请假...");
        System.out.println("组长同意!");
        if(days<=1){
        }else{
            this.getNewLeader().handle(askForLeave);
        }
        return null;
    }
}
